home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_200
/
205_01
/
rs.doc
< prev
next >
Wrap
Text File
|
1980-01-01
|
768b
|
25 lines
-------------------------------------------------------------------------------
RS
-------------------------------------------------------------------------------
Format:
rs [< filename]
Purpose:
RS is a filter that removes all white spaces (spaces and TABs) between the
last word and the carriage return at the ends of lines in text files.
Before: After:
last word. ^I[CR] last word.[CR]
end of text. [CR] end of text.[CR]
sentence.^I^I^I^I[CR] sentence.[CR]
Example:
Remove unnecessary spaces and tabs from textfile and place it in newfile.
rs <texfile >newfile